package com.huilian.iotbox.data.po;

import com.huilian.iotbox.data.dto.QueryParam;
import lombok.Data;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * @author 少凡
 * @date 2020/2/23 11:03
 */
@Data
public class Permission extends QueryParam implements Serializable {

    private static final long serialVersionUID = -7681618608014147291L;

    private Integer id;
    /**
     * 平台类型：1.PC网页，2.商户小程序，3.收银-桌面端，4.收银-手持端
     */
    private Integer platformType;
    private Integer key;
    private String title;
    private String titleSimplify;
    private String type;
    private Boolean nav;
    private String url;
    private String param;
    private String method;
    private Integer parentId;
    private Integer sort;
    private Boolean noAuth;
    private String icon;
    /**
     * 图标颜色,没有就填空
     */
    private String iconColor;
    /**
     * 0下架，1上架
     */
    private Integer status;
    private Date createTime;
    private Date updateTime;

    private boolean select;

    private Integer openSetting;

    private List<Permission> children = new ArrayList<>();

}
